{include file="header.html"}
{$build_editor}
{$build_upload}
<script type="text/javascript" src="templates/js/jquery.colorbox.js" charset="utf-8"></script>
<link href="templates/style/colorbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function(){

})
function video(id){
    $w=$(window).width();
    $h=$(window).height();
    $w=$w*0.7;
    $("#tagframe").width($w);
    $("#tagframe").attr("src","index.php?app=video&act=video&id="+id);
    $.colorbox({
        width : $w+20,
        height : "650px",
        inline : true,
        href : "#taglist"
    });
}
</script>
<div style="display: none"  >
    <div id="taglist">
        <iframe id="tagframe" src="index.php?app=video&act=video"  width="800px" height="600px" frameborder="0" scrolling="no"></iframe>
    </div>
</div>
<div id="rightTop">
    <p>{$lang.video}</p>
    <ul class="subnav">
	    <li><a class="btn1" href="index.php?app=video">{$lang.manage}</a></li>
	    <!-- {if $video.video_id} -->
	    <li><a class="btn1" href="index.php?app=video&amp;act=add">{$lang.add}</a></li>
	    <!-- {else} -->
	    <li><span>{$lang.add}</span></li>
	    <!-- {/if} -->
  	</ul>
</div>
<div class="info">
    <form method="post" enctype="multipart/form-data" id="article_form">
    	<input type="hidden" name="ids" value="{$ids}">
        <table class="infoTable">
            <tr>
                <th class="paddingT15">视频分类：</th>
                <td class="paddingT15 wordSpacing5">
                    <select name="cate" id="cate">
                        <option value="">请选择</option>
                        <!--{foreach from=$vcategorys item=vcategory}-->
                        <option value="{$vcategory.cate_name}" {if $vcategory.cate_name eq $video.cate}selected{/if}>{$vcategory.cate_name}</option>
                        <!--{/foreach}-->
                    </select>
                    <label class="field_notice"></label>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">视频上传：</th>
                <td>
                    <input class="infoTableFile2" id="file_path" type="file" name="file_path" /><label class="field_notice">支持格式mp4</label>
                    {if $video.file_path}<a href="javascript:void(0);"  onclick="video({$ids})">查看视频</a>{/if}
                </td>
            </tr>
            <tr>
                <th class="paddingT15">封面上传：</th>
                <td class="paddingT15 wordSpacing5">
                    <div>
                        {if $video.pic}
                        <a href="/{$video.pic}" target="_blank"><img src="/{$video.pic}" class="makesmall" max_width="120" max_height="90" /></a>
                        {/if}
                    </div>
                    <input class="infoTableFile2" id="pic" type="file" name="pic"/>
                    <label class="field_notice">{$lang.limit_img}</label>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    <label for="content">内容：</label></th>
                <td class="paddingT15 wordSpacing5">
                    <textarea id="content" name="content" style="width:300px;height:100px;">{$video.content}</textarea>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    <label for="hot">是否热门：</label></th>
                <td class="paddingT15 wordSpacing5">
                    <input id="hot_yes" type="radio" name="hot" value="1" {if $video.hot eq 1}checked="checked"{/if}/>
                    <label for="hot_yes">{$lang.yes}</label>
                    <input id="hot_no" type="radio" name="hot" value="0" {if $video.hot eq 0}checked="checked"{/if}/>
                    <label for="hot_no">{$lang.no}</label>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    <label for="rec">是否推荐：</label></th>
                <td class="paddingT15 wordSpacing5">
                    <input id="rec_yes" type="radio" name="rec" value="1" {if $video.rec eq 1}checked="checked"{/if}/>
                    <label for="rec_yes">{$lang.yes}</label>
                    <input id="rec_no" type="radio" name="rec" value="0" {if $video.rec eq 0}checked="checked"{/if}/>
                    <label for="rec_no">{$lang.no}</label>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    <label for="checked">是否审核：</label></th>
                <td class="paddingT15 wordSpacing5">
                    <input id="yes" type="radio" name="checked" value="1" {if $video.checked eq 1}checked="checked"{/if}/>
                    <label for="yes">{$lang.yes}</label>
                    <input id="no" type="radio" name="checked" value="0" {if $video.checked eq 0}checked="checked"{/if}/>
                    <label for="no">{$lang.no}</label>
                </td>
            </tr>
            <tr>
                <th class="paddingT15">
                    <label for="content">审核备注：</label></th>
                <td class="paddingT15 wordSpacing5">
                    <textarea id="checknote" name="checknote" style="width:300px;height:100px;">{if $video.checknote}{$video.checknote}{else}审核通过{/if}</textarea>
                </td>
            </tr>
            <tr>
                <th class="paddingT15"> 排序：</th>
                <td class="paddingT15 wordSpacing5">
                    <input class="sort_order" id="sort_order" type="text" name="sort_order" value="{$video.sort_order}" />
                    <label class="field_notice"></label>
                </td>
            </tr>
	       	<tr>
	            <th></th>
	            <td class="ptb20">
	                <input class="formbtn" type="submit" name="Submit" value="{$lang.submit}" />
	                <input class="formbtn" type="reset" name="Submit2" value="{$lang.reset}" />
	            </td>
	        </tr>
        </table>
    </form>
</div>
{include file="footer.html"}